package cn.smbms.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.pojo.Role;
import cn.smbms.dao.RoleDao;
@Service
public class RoleServiceImpl implements RoleService {
	@Autowired
	private RoleDao rdi;
	
	@Override
	public List<Role> getRoleList() {
		return rdi.getRoleList();
	}

	@Override
	public int upRole(Role role) {
		return rdi.UpRole(role);
	}

	@Override
	public Role getRoleById(String id) {
		return rdi.getRoleById(id);
	}

	@Override
	public int delBill(String id) {
		return rdi.delBill(id);
	}

	@Override
	public int getRoleByCode(String code) {
		return rdi.getRoleByCode(code);
	}

	@Override
	public int addRole(Role role) {
		return rdi.addRole(role);
	}

}
